<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Railway Operation Simulator: railway.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="railway-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Railway Operation Simulator
   &#160;<span id="projectnumber">v2.23.2</span>
   </div>
   <div id="projectbrief">A railway simulator for Windows</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('railway_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">railway.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="railway_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160; </div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;vcl.h&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#pragma hdrstop</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;tchar.h&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="line" href="railway_8cpp.html#aa267b925225335473d9b948c7394e266">    7</a></span>&#160;<a class="code" href="railway_8cpp.html#aa267b925225335473d9b948c7394e266">USEFORM</a>(<span class="stringliteral">&quot;..\..\GitHub Current Version\railway-dot-exe\PerfLogUnit.cpp&quot;</span>, <a class="code" href="_perf_log_unit_8cpp.html#ac17faeb9c39bd4e1b05566e2e0bc86b0">PerfLogForm</a>);</div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="railway_8cpp.html#a9d31281f255f38e72e796c8f84b5a662">    8</a></span>&#160;<a class="code" href="railway_8cpp.html#aa267b925225335473d9b948c7394e266">USEFORM</a>(<span class="stringliteral">&quot;..\..\GitHub Current Version\railway-dot-exe\ActionsDueUnit.cpp&quot;</span>, <a class="code" href="_actions_due_unit_8cpp.html#a74bdf146bd61fa63900be71781ece574">ActionsDueForm</a>);</div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="railway_8cpp.html#ab17360cbbbb4747c6884a51f0ff16b86">    9</a></span>&#160;<a class="code" href="railway_8cpp.html#aa267b925225335473d9b948c7394e266">USEFORM</a>(<span class="stringliteral">&quot;..\..\GitHub Current Version\railway-dot-exe\AboutUnit.cpp&quot;</span>, <a class="code" href="_about_unit_8cpp.html#afeda18bab07d814e4497b7fe8c70a234">AboutForm</a>);</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="railway_8cpp.html#a78db2221d7a1789fd7ff9060170b8361">   10</a></span>&#160;<a class="code" href="railway_8cpp.html#aa267b925225335473d9b948c7394e266">USEFORM</a>(<span class="stringliteral">&quot;..\..\GitHub Current Version\railway-dot-exe\InterfaceUnit.cpp&quot;</span>, <a class="code" href="_interface_unit_8cpp.html#ab46f90e63fff00ad962f3392fd462332">Interface</a>);</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="railway_8cpp.html#ac6afdc93da51ef483fb949cf0b350f6f">   12</a></span>&#160;<span class="keywordtype">int</span> WINAPI <a class="code" href="railway_8cpp.html#ac6afdc93da51ef483fb949cf0b350f6f">_tWinMain</a>(HINSTANCE, HINSTANCE, LPTSTR, <span class="keywordtype">int</span>)</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <span class="keywordflow">try</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        Application-&gt;Initialize();</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        Application-&gt;MainFormOnTaskBar = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        Application-&gt;HelpFile = <span class="stringliteral">&quot;.\\Help_Files\\Help.chm&quot;</span>;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        <span class="comment">/*NB CreateForm() runs the form&#39;s constructor, so if another form is referenced in it that form must be created first,</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">        e.g. Interface before AboutForm (although InterfaceUnit.cpp includes AboutUnit.h the constructor doesn&#39;t reference it). */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;         Application-&gt;CreateForm(__classid(<a class="code" href="class_t_interface.html">TInterface</a>), &amp;<a class="code" href="_interface_unit_8cpp.html#ab46f90e63fff00ad962f3392fd462332">Interface</a>);</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;         Application-&gt;CreateForm(__classid(<a class="code" href="class_t_perf_log_form.html">TPerfLogForm</a>), &amp;<a class="code" href="_perf_log_unit_8cpp.html#ac17faeb9c39bd4e1b05566e2e0bc86b0">PerfLogForm</a>);</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;         Application-&gt;CreateForm(__classid(<a class="code" href="class_t_about_form.html">TAboutForm</a>), &amp;<a class="code" href="_about_unit_8cpp.html#afeda18bab07d814e4497b7fe8c70a234">AboutForm</a>);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;         Application-&gt;CreateForm(__classid(<a class="code" href="class_t_actions_due_form.html">TActionsDueForm</a>), &amp;<a class="code" href="_actions_due_unit_8cpp.html#a74bdf146bd61fa63900be71781ece574">ActionsDueForm</a>);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;         Application-&gt;Run();</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    }</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordflow">catch</span> (Exception &amp;exception)</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        Application-&gt;ShowException(&amp;exception);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    }</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keywordflow">catch</span> (...)</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="keywordflow">try</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            <span class="keywordflow">throw</span> Exception(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        }</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordflow">catch</span> (Exception &amp;exception)</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            Application-&gt;ShowException(&amp;exception);</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        }</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    }</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordflow">return</span>(0);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;}</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="a_perf_log_unit_8cpp_html_ac17faeb9c39bd4e1b05566e2e0bc86b0"><div class="ttname"><a href="_perf_log_unit_8cpp.html#ac17faeb9c39bd4e1b05566e2e0bc86b0">PerfLogForm</a></div><div class="ttdeci">TPerfLogForm * PerfLogForm</div><div class="ttdef"><b>Definition:</b> <a href="_perf_log_unit_8cpp_source.html#l00011">PerfLogUnit.cpp:11</a></div></div>
<div class="ttc" id="a_actions_due_unit_8cpp_html_a74bdf146bd61fa63900be71781ece574"><div class="ttname"><a href="_actions_due_unit_8cpp.html#a74bdf146bd61fa63900be71781ece574">ActionsDueForm</a></div><div class="ttdeci">TActionsDueForm * ActionsDueForm</div><div class="ttdef"><b>Definition:</b> <a href="_actions_due_unit_8cpp_source.html#l00015">ActionsDueUnit.cpp:15</a></div></div>
<div class="ttc" id="aclass_t_about_form_html"><div class="ttname"><a href="class_t_about_form.html">TAboutForm</a></div><div class="ttdoc">The small 'About' box selected from the Help menu.</div><div class="ttdef"><b>Definition:</b> <a href="_about_unit_8h_source.html#l00037">AboutUnit.h:38</a></div></div>
<div class="ttc" id="aclass_t_interface_html"><div class="ttname"><a href="class_t_interface.html">TInterface</a></div><div class="ttdef"><b>Definition:</b> <a href="_interface_unit_8h_source.html#l00093">InterfaceUnit.h:94</a></div></div>
<div class="ttc" id="a_interface_unit_8cpp_html_ab46f90e63fff00ad962f3392fd462332"><div class="ttname"><a href="_interface_unit_8cpp.html#ab46f90e63fff00ad962f3392fd462332">Interface</a></div><div class="ttdeci">TInterface * Interface</div><div class="ttdef"><b>Definition:</b> <a href="_interface_unit_8cpp_source.html#l00071">InterfaceUnit.cpp:71</a></div></div>
<div class="ttc" id="arailway_8cpp_html_ac6afdc93da51ef483fb949cf0b350f6f"><div class="ttname"><a href="railway_8cpp.html#ac6afdc93da51ef483fb949cf0b350f6f">_tWinMain</a></div><div class="ttdeci">int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)</div><div class="ttdef"><b>Definition:</b> <a href="railway_8cpp_source.html#l00012">railway.cpp:12</a></div></div>
<div class="ttc" id="aclass_t_actions_due_form_html"><div class="ttname"><a href="class_t_actions_due_form.html">TActionsDueForm</a></div><div class="ttdef"><b>Definition:</b> <a href="_actions_due_unit_8h_source.html#l00013">ActionsDueUnit.h:14</a></div></div>
<div class="ttc" id="arailway_8cpp_html_aa267b925225335473d9b948c7394e266"><div class="ttname"><a href="railway_8cpp.html#aa267b925225335473d9b948c7394e266">USEFORM</a></div><div class="ttdeci">USEFORM(&quot;..\..\GitHub Current Version\railway-dot-exe\PerfLogUnit.cpp&quot;, PerfLogForm)</div></div>
<div class="ttc" id="a_about_unit_8cpp_html_afeda18bab07d814e4497b7fe8c70a234"><div class="ttname"><a href="_about_unit_8cpp.html#afeda18bab07d814e4497b7fe8c70a234">AboutForm</a></div><div class="ttdeci">TAboutForm * AboutForm</div><div class="ttdef"><b>Definition:</b> <a href="_about_unit_8cpp_source.html#l00047">AboutUnit.cpp:47</a></div></div>
<div class="ttc" id="aclass_t_perf_log_form_html"><div class="ttname"><a href="class_t_perf_log_form.html">TPerfLogForm</a></div><div class="ttdef"><b>Definition:</b> <a href="_perf_log_unit_8h_source.html#l00013">PerfLogUnit.h:14</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="railway_8cpp.html">railway.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
  </ul>
</div>
</body>
</html>
